package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.Jbqk;
import com.corpcredit.model.Ygxl;
import com.corpcredit.service.GenericManager;
import com.corpcredit.service.LookupManager;

public class YgxlList extends BasePage implements Serializable {
    private GenericManager<Ygxl, Long> ygxlManager;
    private LookupManager lookupManager;
	private Jbqk jbqk;
	public void setLookupManager(LookupManager lookupManager)
	{
		this.lookupManager=lookupManager;
	}
	public void setJbqk(Jbqk jbqk)
	{
		this.jbqk=jbqk;
	}

    public void setYgxlManager(GenericManager<Ygxl, Long> ygxlManager) {
        this.ygxlManager = ygxlManager;
    }

    public YgxlList() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getYgxls() {
//        return sort(ygxlManager.getAll());
    	return sort(lookupManager.findAllByJbqkID(Ygxl.class, jbqk.getId()));

    }
}

